GoXam for WPF v3
Load<NodeDataType,LinkDataType>(XContainer,XName,XName) Method
Northwoods.GoXam.Model Namespace > GraphLinksModel<NodeType,NodeKey,PortKey,LinkType> Class > Load Method : Load<NodeDataType,LinkDataType>(XContainer,XName,XName) Method
this must be a GraphLinksModelNodeData<NodeKey> with a public zero-argument constructor
this must be a GraphLinksModelLinkData<NodeKey,PortKey> with a public zero-argument constructor
the XContainer holding all of the data
the name of each XElement holding node data
the name of each XElement holding link data
Given a Linq for XML XContainer holding node and link data, replace this model's NodesSource and LinksSource collections with collections of new node data and new link data.
Syntax

Parameters

root
the XContainer holding all of the data
nodename
the name of each XElement holding node data
linkname
the name of each XElement holding link data

Type Parameters

NodeDataType
this must be a GraphLinksModelNodeData<NodeKey> with a public zero-argument constructor
LinkDataType
this must be a GraphLinksModelLinkData<NodeKey,PortKey> with a public zero-argument constructor
Remarks

All of the changes to this model are performed within a transaction.

This does not set the IsModified property to false. You may wish to do so, depending on your application requirements. You might also wish to clear the UndoManager.

See Also

Reference

GraphLinksModel<NodeType,NodeKey,PortKey,LinkType> Class
GraphLinksModel<NodeType,NodeKey,PortKey,LinkType> Members
Overload List